
package com.cnksi.dwz.web.dto;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 封装前台分页对象
 * 
 * @author dell
 *
 */
public class Pagination implements Serializable
{

	private static final long serialVersionUID = 1L;

	private int pageNum = 1;//当前页号

	private int numPerPage = 25;//每页显示记录条数，默认25条

	private String orderField;

	public int getPageNum()
	{

		return pageNum - 1;
	}

	public void setPageNum(int pageNum)
	{

		this.pageNum = pageNum;
	}

	public int getNumPerPage()
	{

		return numPerPage;
	}

	public void setNumPerPage(int numPerPage)
	{

		this.numPerPage = numPerPage;
	}

	public String getOrderField()
	{

		return orderField;
	}

	public void setOrderField(String orderField)
	{

		this.orderField = orderField;
	}

	@Override
	public String toString()
	{

		return ToStringBuilder.reflectionToString(this);
	}
}
